package tech.aistar.corejava.day05.HomeWork.ShoppingCart;

import static tech.aistar.corejava.day05.HomeWork.ShoppingCart.Demo.demo0;
import static tech.aistar.corejava.day05.HomeWork.ShoppingCart.Demo.demo1;
import static tech.aistar.corejava.day05.HomeWork.ShoppingCart.Demo.demo2;

/**
 * Created by 李雨昂 on 2019/7/20.
 */
public class Test {
    public static void main(String[] args) {
        Product product0 = new Product(1,"西瓜1",50,"中国");
        Product product1 = new Product(2,"西瓜2",500,"中国");
        Product product2 = new Product(3,"西瓜3",150,"中国");
        Product product3 = new Product(4,"西瓜4",790,"中国");
        Product product4 = new Product(5,"西瓜5",340,"中国");
        Product product5 = new Product(6,"西瓜6",200,"中国");
        Product product6 = new Product(7,"西瓜7",900,"中国");
        Product product7 = new Product(8,"西瓜8",400,"中国");
        Product product8 = new Product(9,"西瓜9",480,"中国");
        Product product9 = new Product(10,"西瓜10",1000,"中国");

        Product[] products = new Product[10];

        products[0] = product0;
        products[1] = product1;
        products[2] = product2;
        products[3] = product3;
        products[4] = product4;
        products[5] = product5;
        products[6] = product6;
        products[7] = product7;
        products[8] = product8;
        products[9] = product9;

        demo0(products);
        System.out.println("===================");
        demo1(products,300);
        System.out.println("===================");
        demo2(products);
    }

}
